| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | View Code Duplication | "use strict"; |
|
| 8 | this.rateLimits.forEach(function (rateLimit) { |
||
| 9 | if (!rateLimit.isActive()) { |
||
| 10 | rateLimit.startTimer(); |
||
| 11 | } |
||
| 12 | if (rateLimit.getCallsLeft() > 0) { |
||
| 13 | rateLimit.decrementCall(); |
||
| 14 | callback(); |
||
| 15 | } |
||
| 16 | }); |
||
| 17 | }; |
||
| 42 | //# sourceMappingURL=ratelimiter.js.map |